home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / OpenDoc Utilities / Interfaces / BindingUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-01  |  1.2 KB  |  55 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        BindingUtils.h
  3.  
  4.     Contains:    Binding Utilities interfaces
  5.  
  6.     Owned by:    Reggie Adkins
  7.  
  8.     Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <3>      11/21/96    RA        Added ODSetPreferredKindProps
  13.          <2>      10/10/96    RA        Moved ChangeKindAndEditor, ChangeEditor,
  14.                                     IsNoPart and GetCurrentEditorForPart from
  15.                                     BindngH.h
  16.  
  17.     To Do:
  18. */
  19.  
  20.  
  21. #ifndef _OD_IMPL_
  22. #error These utilties should not be used by part developers.
  23. #endif
  24.  
  25. #ifndef _BINDINGUTILS_
  26. #define _BINDINGUTILS_
  27.  
  28. #ifdef _OD_IMPL_
  29.  
  30. ODEditor     GetCurrentEditorForPart(ODPart* part );
  31.  
  32. void        ChangeEditor(ODPart* part, ODEditor editorID); 
  33.  
  34. void        ChangeKindAndEditor (Environment *ev,
  35.                 ODPart* part,
  36.                 ODType newKind,
  37.                 ODEditor newEditor,
  38.                 ODNameSpaceManager* nsm);
  39.  
  40. void ODSetPreferredEditorProps(ODStorageUnit* thePartSU, ODEditor theChosenEditor );
  41.  
  42. void ODSetPreferredKindProps(ODStorageUnit* thePartSU, ODType preferredkind);
  43.  
  44. ODBoolean     IsNoPart(Environment* ev, ODPart* rootPart);
  45.  
  46. ODBoolean     IsNoPart(Environment* ev, ODEditor editor);
  47.  
  48. ODBoolean IsViewerOfLastResort(Environment* ev, ODPart* part);
  49.  
  50. ODBoolean IsViewerOfLastResort(Environment* ev, ODEditor editor);
  51.  
  52. #endif //_OD_IMPL_
  53.  
  54. #endif //_BINDINGUTILS_
  55.